package com.csj.DesignPattern.spring.example.dao.impl;


import com.csj.DesignPattern.spring.example.dao.UserDao;

public class UserDaoImpl implements UserDao {

    private String name;

    private String password;

    public void setName(String name) {
        this.name = name;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public UserDaoImpl()
    {
        System.out.println("UserDaoImpl constructor");
    }
    @Override
    public void add() {
        System.out.println("UserDao add " + name + " " + password);
    }
}
